package com.alex.statistics.pojo.result.timeSeriesAnalysis;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "一元回归结果")
public class LinearRegressionResult {

    @Schema(description = "回归系数，包括斜率和截距", example = "[slope, intercept]")
    private double[] coefficients;  // 返回回归系数 [slope, intercept]

    @Schema(description = "回归预测的公式", example = "y = slope * x + intercept")
    private String predictionFormula;  // 预测公式，便于前端展示给用户
}
